/**   
 * Copyright © 2018 eSunny Info. Tech Ltd. All rights reserved.
 * 
 * @Package: com.eastcompeace.swagger 
 * @author: Zousonghua   
 * @date: 2018年4月16日 上午10:50:35 
 */
package com.eastcompeace.swagger;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import com.eastcompeace.swagger.util.SpringUtil;

/**
 * @ClassName: SpringBootDemoApplication
 * @Description: TODO
 * @author: Zousonghua
 * @date: 2018年4月16日 上午10:50:35
 */
@SpringBootApplication
public class SpringBootDemoApplication {
	public static void main(String[] args) {

		ApplicationContext ctx = SpringApplication.run(SpringBootDemoApplication.class, args);
		SpringUtil.setApplicationContext(ctx);
		// String[] beanNames = ctx.getBeanDefinitionNames();
		// System.out.println("beanNames个数："+beanNames.length);
		// for(String bn:beanNames){
		// System.out.println(bn);
		// }
		//
		// SpringUtilTest sut=SpringUtil.getBean(SpringUtilTest.class);
		// sut.setAge(31);
		// sut.setName("hongdada");
		// sut.show();
	}
}